import 'package:flutter/material.dart';
import 'package:flutter/src/foundation/key.dart';
import 'package:flutter/src/widgets/framework.dart';
import 'package:untitled/pages/view/welcomeVideoWidget.dart';
import 'package:untitled/pages/view/welcome_time_widget.dart';

class WelComePage extends StatefulWidget {
  const WelComePage({Key? key}) : super(key: key);

  @override
  State<WelComePage> createState() => _WelComePageState();
}

class _WelComePageState extends State<WelComePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      // 全屏显示
      body: Container(
        width: double.infinity,
        height: double.infinity,
        child: Stack(
          children: [
            // 第一层 背景 可以是一个图片
            // 也可以是一个视频播放
            Positioned.fill(
              child: WelcomeVideoWidget(),
              ),

            // 第二层就是倒计时功能
            // 右下角对齐
            Positioned(
              child: WelcomeTimeWidget(),
              right: 20,
              bottom: 66,
              )

          ],
        ),
      ),
    );
    
  }
}